Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Add defaults test #93

Merged
merged 15 commits into from
Oct 24, 2023
Merged

Add defaults test #93

merged 15 commits into from
Oct 24, 2023

Conversation

igiloh-pinecone
Copy link
Contributor

Problem

We have two sets of defaults - one hard-coded in the code, and the other in a default config file.

Solution

Added a recursive test that verifies that a class instantiated with hard defaults is similar to class instantiated from default config.

Test Plan

Well...

Copy link
Contributor

@miararoy miararoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recursive lgtm

Since this test instantiates acutual objects (namely `OpenAILLM`), it needs to have actual API keys etc.
This shouldn't be part of the unit tests
Base automatically changed from app_config to dev October 24, 2023 11:51
This involves doing an API call on __init__(), which is cumbersome.
Worst case it will fail on the first LLm call
We removed this mechanism from the constructor
@igiloh-pinecone igiloh-pinecone merged commit d2125ab into dev Oct 24, 2023
10 checks passed
@igiloh-pinecone igiloh-pinecone deleted the add_defaults_test branch October 24, 2023 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants